while True:
    try:
        a = int(input("请输入除数："))
        b = int(input("请输入被除数："))
        c = b / a
    except ValueError:
        print("除数不能为小数")
    except ZeroDivisionError:
        print("除数不能为0")
    else:
        print("结果为：{}".format(c))
        break


#ZeroDivisionError/ValueError
